var e = require("../../../common/vendor.js"), o = {
    data: function() {
        return {
            model1: {
                userInfo: {
                    mobile: "",
                    password: ""
                }
            },
            rules: {
                "userInfo.mobile": {
                    type: "string",
                    required: !0,
                    message: "请填写您的手机号码！",
                    trigger: [ "blur", "change" ]
                },
                "userInfo.password": {
                    type: "string",
                    required: !0,
                    message: "请填写您的密码！",
                    trigger: [ "blur", "change" ]
                }
            }
        };
    },
    methods: {
        submit: function() {
            this.$refs.form.validate().then(function(o) {
                e.index.showToast({
                    icon: "success",
                    title: "校验通过"
                });
            }).catch(function(o) {
                e.index.showToast({
                    icon: "error",
                    title: "校验失败"
                });
            });
        },
        reset: function() {
            this.$refs.form.resetFields(), this.$refs.form.clearValidate();
        },
        hideKeyboard: function() {
            e.index.hideKeyboard();
        }
    }
};

Array || (e.resolveComponent("uv-input") + e.resolveComponent("uv-form-item") + e.resolveComponent("uv-button") + e.resolveComponent("uv-form"))(), 
Math || (function() {
    return "../../../uni_modules/uv-input/components/uv-input/uv-input.js";
} + function() {
    return "../../../uni_modules/uv-form/components/uv-form-item/uv-form-item.js";
} + function() {
    return "../../../uni_modules/uv-button/components/uv-button/uv-button.js";
} + function() {
    return "../../../uni_modules/uv-form/components/uv-form/uv-form.js";
})();

var r = e._export_sfc(o, [ [ "render", function(o, r, t, n, u, s) {
    return {
        a: e.o(function(e) {
            return u.model1.userInfo.mobile = e;
        }),
        b: e.p({
            border: "none",
            modelValue: u.model1.userInfo.mobile
        }),
        c: e.p({
            label: "手机号码:",
            prop: "userInfo.mobile",
            borderBottom: !0
        }),
        d: e.o(function(e) {
            return u.model1.userInfo.password = e;
        }),
        e: e.p({
            border: "none",
            modelValue: u.model1.userInfo.password
        }),
        f: e.p({
            label: "您的密码:",
            prop: "userInfo.password",
            borderBottom: !0
        }),
        g: e.o(s.submit),
        h: e.p({
            type: "primary",
            text: "提交",
            customStyle: "margin-top: 10px"
        }),
        i: e.o(s.reset),
        j: e.p({
            type: "error",
            text: "重置",
            customStyle: "margin-top: 10px"
        }),
        k: e.sr("form", "f657a6eb-0"),
        l: e.p({
            labelWidth: "80",
            labelPosition: "left",
            model: u.model1,
            rules: u.rules
        })
    };
} ], [ "__scopeId", "data-v-f657a6eb" ] ]);

wx.createPage(r);